package cn.hxlc.tie.demo.modular.ljt.equipment.service;

import cn.hxlc.tie.demo.core.enums.StatusEnum;
import cn.hxlc.tie.demo.modular.ljt.equipment.entity.Facility;
import cn.hxlc.tie.demo.modular.ljt.equipment.model.params.FacilityParam;
import cn.hxlc.tie.demo.modular.ljt.equipment.model.result.FacilityResult;
import cn.hxlc.tie.model.page.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface FacilityService_lt extends IService<Facility> {

    /**
     *  设备资料 树结构 详细数据分页查询
     */
    PageResult<FacilityResult> findPageBySpec(FacilityParam param);

    /**
     * 查询主设备
     */
    List<Facility> fisMain();

    /**
     *  设备详情
     */
    Facility selectById(Integer fid);

    /**
     *  新增设备
     */
    void addFacility(FacilityParam param);

    /**
     * 编辑设备
     */
    void updateFacility(FacilityParam param);

    /**
     *  启用禁用
     */
    void batchChangeState(Object[] fid, StatusEnum toEnum);

    /**
     *  批量删除
     */
    void batchDelete(Object[] fid);
}
